package aom.ju.ss.mode

data class YHGoods(
    val code: Int,
    val count: Int,
    val `data`: List<YHGoodsData>?,
    val error_type: Int,
    val msg: String,
)

data class YHGoodsData(
    val audit_status_text: String,
    val id: Int,
    val image: String,
    val market_price: String,
    val name: String,
    val price: String,
    val status: Int,
    val status_text: String
) {

    var inventory: Int? = 0
        get() {
            if (field == null) {
                field = 0
            }
            return field
        }
    var sales: String? = ""
        get() {
            if (field == null) {
                field = "0"
            }
            return field
        }
}